package cn.neusoft.annodi;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller   //控制层
public class UserController {

    @Resource
    UserService userService;
    public void add(){
        System.out.println("UserController注解方式---add");
        userService.add();
    }

}
